package com.huifaapp.mall.bean;

/**
 * Created by DM on 2018/1/20.
 */

public class Goods {

    /**
     * msg : 请求成功！
     * code : 10000
     * data : {"goodInfo":{"mainImg":"http://file.jhjvip.cn/images/1726d553-9d1a-4080-907c-7dbb21bc0dff.jpg","goodName":"九日马来西亚进口味祖巧克力味威化饼干50g*3盒","price":50.8,"totalSales":11,"conPrice":10},"price":10,"startTime":"2017-11-02","endTime":"2018-11-30","id":"65531c5ac08b4a3b900b7566ea11a24d","state":1}
     */

    private String msg;
    private String code;
    private DataBean data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * goodInfo : {"mainImg":"http://file.jhjvip.cn/images/1726d553-9d1a-4080-907c-7dbb21bc0dff.jpg","goodName":"九日马来西亚进口味祖巧克力味威化饼干50g*3盒","price":50.8,"totalSales":11,"conPrice":10}
         * price : 10
         * startTime : 2017-11-02
         * endTime : 2018-11-30
         * id : 65531c5ac08b4a3b900b7566ea11a24d
         * state : 1
         */

        private GoodInfoBean goodInfo;
        private double price;
        private String startTime;
        private String endTime;
        private String id;
        private int state;

        public GoodInfoBean getGoodInfo() {
            return goodInfo;
        }

        public void setGoodInfo(GoodInfoBean goodInfo) {
            this.goodInfo = goodInfo;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public String getStartTime() {
            return startTime;
        }

        public void setStartTime(String startTime) {
            this.startTime = startTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public static class GoodInfoBean {
            /**
             * mainImg : http://file.jhjvip.cn/images/1726d553-9d1a-4080-907c-7dbb21bc0dff.jpg
             * goodName : 九日马来西亚进口味祖巧克力味威化饼干50g*3盒
             * price : 50.8
             * totalSales : 11
             * conPrice : 10
             */

            private String mainImg;
            private String goodName;
            private double price;
            private int totalSales;
            private double conPrice;

            public String getMainImg() {
                return mainImg;
            }

            public void setMainImg(String mainImg) {
                this.mainImg = mainImg;
            }

            public String getGoodName() {
                return goodName;
            }

            public void setGoodName(String goodName) {
                this.goodName = goodName;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public int getTotalSales() {
                return totalSales;
            }

            public void setTotalSales(int totalSales) {
                this.totalSales = totalSales;
            }

            public double getConPrice() {
                return conPrice;
            }

            public void setConPrice(double conPrice) {
                this.conPrice = conPrice;
            }
        }
    }
}
